package practice.server;

import java.io.IOException;

/**
 * 测试结果
 * 4核 i5-8300H 8GB 使用 Apache HTTP server benchmarking tool 测试
 * 读取一张图片 10个线程
 * 
 * 5000个请求
 * ThreadCnt      1        4
 * Total Time     2.565    1.427
 * Request/s      1949.27  3503
 * Time/request   0.513    0.285
 * 
 * 50000个请求
 * ThreadCnt      1        4
 * Total Time     24.385   12.556
 * Request/s      2050     3982
 * Time/request   0.488    0.251
 * 
 * @author insight
 * @since 2021/9/9
 */
public class SimpleServerTest {
    public static void main(String[] args) throws IOException {
        SimpleServerByExecutor server =
                new SimpleServerByExecutor();
        server.setBasePath("E:\\Learner\\Picture\\Saved Pictures");
        
        server.start();
    }
}